package com.ocean.admin.model.dto.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 部门修改Vo
 *
 * @author zhang
 * @since 2022/8/20 18:06
 **/
@Data
public class DeptUpdateDTO {

    /**
     * 部门ID
     */
    @NotNull(message = "请输入部门ID")
    @Schema(description = "部门ID", required = true)
    private Long deptId;


    /**
     * 父部门id
     */
    @Schema(description = "父部门id，指定某个上级部门时，必传")
    private Long parentId;

    /**
     * 部门名称
     */
    @NotBlank(message = "请输入部门名称")
    @Schema(description = "部门名称", required = true)
    private String deptName;

    /**
     * 显示顺序
     */
    @Schema(description = "显示顺序")
    private Integer orderNum;

    /**
     * 负责人
     */
    @Schema(description = "负责人")
    private String leader;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String phone;

    /**
     * 邮箱
     */
//    @Schema(description = "邮箱")
//    private String email;

    /**
     * 部门状态（0正常 1停用）
     */
    @Schema(description = "部门状态（0正常 1停用）")
    private Integer status;
}
